package com.example.demo.entify;

import java.util.List;

import javax.persistence.Transient;

public class Role {
	private  int id;
	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", nameZh=" + nameZh + ", users=" + users + ", menus=" + menus
				+ "]";
	}

	private String name;
	private String nameZh;
	public Role(int id, String name, String nameZh, List<User> users, List<Menu> menus) {
		super();
		this.id = id;
		this.name = name;
		this.nameZh = nameZh;
		this.users = users;
		this.menus = menus;
	}

	public String getNameZh() {
		return nameZh;
	}
	public void setNameZh(String nameZh) {
		this.nameZh = nameZh;
	}

	@Transient
	private List<User> users;
	@Transient
	private List<Menu> menus;
	
	public List<Menu> getMenus() {
		return menus;
	}
	public void setMenus(List<Menu> menus) {
		this.menus = menus;
	}
	
	public String getName() {
		return name;
	}
	
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public List<User> getUsers() {
		return users;
	}
	public void setUsers(List<User> users) {
		this.users = users;
	}
	public Role() {};

	
	

}
